intermediate_dir="intermediates_2";
image_raw=imread("pic_measure.png");
img_gray_raw = rgb2gray(image_raw);
gfsave(img_gray_raw,"灰度图像");

[m,n] = size(img_gray_raw);
img_gray = double(img_gray_raw);
img_gray = imgaussfilt(img_gray_raw,2);
gfsave()

model = [-1,0,1;-2,0,2;-1,0,1];
gfsave(imfilter(img_gray_raw,model),"垂直边缘");
model = [-1,-2,-1;0,0,0;1,2,1];
gfsave(imfilter(img_gray_raw,model),"水平边缘");
edges = edge(img_gray, 'log');


gfsave(edge(img_gray_raw,'roberts'),"r");
gfsave(edge(img_gray_raw,"sobel"),'sobel');
gfsave(edges,'l');
